package com.oromwin.repos.data;


import java.io.File;

import com.oromwin.repos.common.Common;
import com.oromwin.repos.common.Common.Category;

public class FileTable extends AbstractReposTable {
    private String VolumeId = Common.NULL;
    private String MediaId = Common.NULL;
    private String FileId = Common.NULL;
    private String FileName = Common.NULL;
    private String FileFormat = Common.FileExt.BINFILE;
    private File FilePath = new File(Common.NULL);
    private Long FileBytes = new Long(0L);
    private String FileCategory = Category.NORMAL;
    private Boolean FileStatus = Boolean.FALSE;
    private Boolean FilePdfConvFlag = Boolean.FALSE; 
    private Boolean FileCompressionFlag = Boolean.FALSE; 
    private String FileCreateDate = Common.NULL;
    private String FileUpdateDate = Common.NULL;
    public FileTable() {
    }
    public FileTable(String volumeId, String mediaId, String fileId, String fileName, String fileFormat, File filePath, Long fileBytes, String fileCategory, Boolean fileStatus, Boolean filePdfConvFlag, Boolean fileCompressionFlag, String createDate, String updateDate) {
        VolumeId = volumeId;
        MediaId = mediaId;
        FileId = fileId;
        FileName = fileName;
        FileFormat = fileFormat;
        FilePath = filePath;
        FileBytes = fileBytes;
        FileCategory = fileCategory;
        FileStatus = fileStatus;
        FilePdfConvFlag = filePdfConvFlag;
        FileCompressionFlag = fileCompressionFlag;
        FileCreateDate = createDate;
        FileUpdateDate = updateDate;
    }
    public String getVolumeId() {
        return VolumeId;
    }
    public void setVolumeId(String volumeId) {
        this.VolumeId = volumeId;
    }
    public String getMediaId() {
        return MediaId;
    }
    public void setMediaId(String mediaId) {
        this.MediaId = mediaId;
    }
    public String getFileId() {
        return FileId;
    }
    public void setFileId(String fileId) {
        this.FileId = fileId;
    }
    public String getFileName() {
        return FileName;
    }
    public void setFileName(String fileName) {
        this.FileName = fileName;
    }
    public String getFileFormat() {
        return FileFormat;
    }
    public void setFileFormat(String fileFormat) {
        this.FileFormat = fileFormat;
    }
    public File getFilePath() {
        return FilePath;
    }
    public void setFilePath(File filePath) {
        this.FilePath = filePath;
    }
    public Long getFileBytes() {
        return FileBytes;
    }
    public void setFileBytes(Long fileBytes) {
        this.FileBytes = fileBytes;
    }
    public String getFileCategory() {
        return FileCategory;
    }
    public void setFileCategory(String fileCategory) {
        this.FileCategory = fileCategory;
    }
    public Boolean getFileStatus() {
        return FileStatus;
    }
    public void setFileStatus(Boolean fileStatus) {
        this.FileStatus = fileStatus;
    }
    public Boolean getFilePdfConvFlag() {
        return FilePdfConvFlag;
    }
    public void setFilePdfConvFlag(Boolean pdfConvFlag) {
        this.FilePdfConvFlag = pdfConvFlag;
    }
    public Boolean getFileCompressionFlag() {
        return FileCompressionFlag;
    }
    public void setFileCompressionFlag(Boolean compressionFlag) {
        this.FileCompressionFlag = compressionFlag;
    }
    public String getFileCreateDate() {
        return FileCreateDate;
    }
    public void setFileCreateDate(String createDate) {
        this.FileCreateDate = createDate;
    }
    public String getFileUpdateDate() {
        return FileUpdateDate;
    }
    public void setFileUpdateDate(String updateDate) {
        this.FileUpdateDate = updateDate;
    }
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("VolumeId/\t"+VolumeId+"\n");
        sb.append("MediaId/\t"+MediaId+"\n");
        sb.append("FileId/\t"+FileId+"\n");
        sb.append("FileName/\t"+FileName+"\n");
        sb.append("FileFormat/\t"+FileFormat+"\n");
        sb.append("FilePath/\t"+FilePath+"\n");
        sb.append("FileBytes/\t"+FileBytes+"\n");
        sb.append("FileCategory/\t"+FileCategory+"\n");
        sb.append("FileStatus/\t"+FileStatus.toString()+"\n");
        sb.append("FilePdfConvFlag/\t"+FilePdfConvFlag.toString()+"\n");
        sb.append("FileCompressionFlag/\t"+FileCompressionFlag.toString()+"\n");
        sb.append("FileCreateDate/\t"+FileCreateDate.toString()+"\n");
        sb.append("FileUpdateDate/\t"+FileUpdateDate.toString()+"\n");
        return sb.toString();
    }
    public File getFullFilepath() {
        return new File(FilePath, FileId);
    }
}
